/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.seari.bean;

import com.alibaba.fastjson.JSONObject;

import java.util.Map;
import java.util.Set;

/**
 *
 * @author Rainbow
 */
public class IndexDoc
{
/**
     * url的md5 hash，主键
     */
    public String guid;

    /**
     * key
     */
    public String orGuid;

    /**
     * 来源站点名字
     */
    public String sourceSiteName;

    /**
     * 链接地址
     */
    public String url;

    /**
     * 作者
     */
    public String author;
    /**
     * 作者Id
     */
    public long authorId;

    /**
     * 标题
     */
    public String title;

    /**
     * 内容
     */
    public String content;

    /**
     * 页面源码
     */
    public String pageSource;

    /**
     * 保存的图片url在文章中的对应关系
     */
    public Map<String, String> imagesUrls;

    /**
     * 高亮显示标题
     */
    public String titleLight;
    /**
     * 高亮显示内容
     */
    public String contentLight;

    /**
     * 发文时间
     */
    public long tmPost;

    /**
     * 最后回复时间
     */
    public long tmReply;

    /**
     * 摘要
     */
    public String abContent;

    /**
     * 基于标题的md5 hash值，用于同主题文章判断
     */
    public String matchCode;

    /**
     * 回复数
     */
    public int replyCount;

    /**
     * 阅读数
     */
    public int readCount;

    /**
     * 转载数
     */
    public int copyCount;

    /**
     * ‘赞’数
     */
    public int likeCount;

    /**
     * 站点fid
     */
    public int fid;

    /**
     * 站点rfid
     */
    public int rfid;

    /**
     * 版面bid
     */
    public int bid;

    /**
     * 采集时间
     */
    public long tmSpider;

    /**
     * 更新时间
     */
    public long tmUpdate;


    /**
     * 关键词列表
     */
    public String[] keywords;

    /**
     * 文章内容中包含的图片url地址，如果有的话
     */
    public String[] imageUrls;

    /**
     * 系统专题（分类）id列表
     */
    public Set<Integer> sysLids;

    /**
     * 索引操作类型（插入I、删除D、局部更新U，全更新F）
     */
    public char op;

    /**
     * 是否需要立即提交
     */
    public boolean needCommit = false;

    /**
     * 采集文章的spider类型, 参考{@link com.chonseng.webmon.common.SpiderType}
     */
    public int spiderType;

    /**
     * 所属地域代码
     */
    public Set<Long> areas;

    /**
     * 内容中包含的URL
     */
    public String[] enclosingUrls;

    /**
     * 重要性
     */
    public double importance;    // The overall predicted importance of the article. Should be indexed by search engine.

    /**
     * 处理状态
     */
    public int stage;

    /**
     * 存储时间
     */
    public long tmStore;

    /**
     * 是否是回帖
     */
    public boolean isReply = false;


    /**
     * 文章是否已被网站删除
     */
    public boolean deleted;


    /**
     * 站点地域
     */
    public long websiteArea;

    /**
     * 是否已经采集过回帖
     */
    public boolean hasCollectReply;

    /**
     * 文章发文地点经纬度
     */
    public double[] coordinates;

    /**
     * 文章发文地点
     */
    public String address;

    /**
     * 来源,微博使用
     */
    public String source;

    /**
     * 屏幕名
     */
    public String screenName;

    /**
     * 视频地址
     */
    public String[] videoUrl;

    /**
     * 用户id(暂时只存了微博用户id)
     */
    public long uid;

    /**
     * 转发微博的id
     */
    public long retweetId;

    /**
     * 判别是否为初始化采集的文章
     */
    public boolean isInitArticle = false;
    
    public JSONObject jsonObject = new JSONObject();


    /**
     * 默认构造函数
     */
    public IndexDoc()
    {
    	
    }

    public String getGuid()
    {
        return guid;
    }

    public void setGuid(String guid)
    {
        this.guid = guid;
    }

    public String getOrGuid()
    {
        return orGuid;
    }

    public void setOrGuid(String orGuid)
    {
        this.orGuid = orGuid;
    }

    public String getSourceSiteName()
    {
        return sourceSiteName;
    }

    public void setSourceSiteName(String sourceSiteName)
    {
        this.sourceSiteName = sourceSiteName;
    }

    public String getUrl()
    {
        return url;
    }

    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getAuthor()
    {
        return author;
    }

    public void setAuthor(String author)
    {
        this.author = author;
    }

    public long getAuthorId()
    {
        return authorId;
    }

    public void setAuthorId(long authorId)
    {
        this.authorId = authorId;
    }

    public String getTitle()
    {
        return title;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getContent()
    {
        return content;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    public String getPageSource()
    {
        return pageSource;
    }

    public void setPageSource(String pageSource)
    {
        this.pageSource = pageSource;
    }

    public Map<String, String> getImagesUrls()
    {
        return imagesUrls;
    }

    public void setImagesUrls(Map<String, String> imagesUrls)
    {
        this.imagesUrls = imagesUrls;
    }

    public String getTitleLight()
    {
        return titleLight;
    }

    public void setTitleLight(String titleLight)
    {
        this.titleLight = titleLight;
    }

    public String getContentLight()
    {
        return contentLight;
    }

    public void setContentLight(String contentLight)
    {
        this.contentLight = contentLight;
    }

    public long getTmPost()
    {
        return tmPost;
    }

    public void setTmPost(long tmPost)
    {
        this.tmPost = tmPost;
    }

    public long getTmReply()
    {
        return tmReply;
    }

    public void setTmReply(long tmReply)
    {
        this.tmReply = tmReply;
    }

    public String getAbContent()
    {
        return abContent;
    }

    public void setAbContent(String abContent)
    {
        this.abContent = abContent;
    }

    public String getMatchCode()
    {
        return matchCode;
    }

    public void setMatchCode(String matchCode)
    {
        this.matchCode = matchCode;
    }

    public int getReplyCount()
    {
        return replyCount;
    }

    public void setReplyCount(int replyCount)
    {
        this.replyCount = replyCount;
    }

    public int getReadCount()
    {
        return readCount;
    }

    public void setReadCount(int readCount)
    {
        this.readCount = readCount;
    }

    public int getCopyCount()
    {
        return copyCount;
    }

    public void setCopyCount(int copyCount)
    {
        this.copyCount = copyCount;
    }

    public int getLikeCount()
    {
        return likeCount;
    }

    public void setLikeCount(int likeCount)
    {
        this.likeCount = likeCount;
    }

    public int getFid()
    {
        return fid;
    }

    public void setFid(int fid)
    {
        this.fid = fid;
    }

    public int getRfid()
    {
        return rfid;
    }

    public void setRfid(int rfid)
    {
        this.rfid = rfid;
    }

    public int getBid()
    {
        return bid;
    }

    public void setBid(int bid)
    {
        this.bid = bid;
    }

    public long getTmSpider()
    {
        return tmSpider;
    }

    public void setTmSpider(long tmSpider)
    {
        this.tmSpider = tmSpider;
    }

    public long getTmUpdate()
    {
        return tmUpdate;
    }

    public void setTmUpdate(long tmUpdate)
    {
        this.tmUpdate = tmUpdate;
    }

    public String[] getKeywords()
    {
        return keywords;
    }

    public void setKeywords(String[] keywords)
    {
        this.keywords = keywords;
    }

    public String[] getImageUrls()
    {
        return imageUrls;
    }

    public void setImageUrls(String[] imageUrls)
    {
        this.imageUrls = imageUrls;
    }

    public Set<Integer> getSysLids()
    {
        return sysLids;
    }

    public void setSysLids(Set<Integer> sysLids)
    {
        this.sysLids = sysLids;
    }

    public char getOp()
    {
        return op;
    }

    public void setOp(char op)
    {
        this.op = op;
    }

    public boolean isNeedCommit()
    {
        return needCommit;
    }

    public void setNeedCommit(boolean needCommit)
    {
        this.needCommit = needCommit;
    }

    public int getSpiderType()
    {
        return spiderType;
    }

    public void setSpiderType(int spiderType)
    {
        this.spiderType = spiderType;
    }

    public Set<Long> getAreas()
    {
        return areas;
    }

    public void setAreas(Set<Long> areas)
    {
        this.areas = areas;
    }

    public String[] getEnclosingUrls()
    {
        return enclosingUrls;
    }

    public void setEnclosingUrls(String[] enclosingUrls)
    {
        this.enclosingUrls = enclosingUrls;
    }

    public double getImportance()
    {
        return importance;
    }

    public void setImportance(double importance)
    {
        this.importance = importance;
    }

    public int getStage()
    {
        return stage;
    }

    public void setStage(int stage)
    {
        this.stage = stage;
    }

    public long getTmStore()
    {
        return tmStore;
    }

    public void setTmStore(long tmStore)
    {
        this.tmStore = tmStore;
    }

    public boolean isIsReply()
    {
        return isReply;
    }

    public void setIsReply(boolean isReply)
    {
        this.isReply = isReply;
    }

    public boolean isDeleted()
    {
        return deleted;
    }

    public void setDeleted(boolean deleted)
    {
        this.deleted = deleted;
    }

    public long getWebsiteArea()
    {
        return websiteArea;
    }

    public void setWebsiteArea(long websiteArea)
    {
        this.websiteArea = websiteArea;
    }

    public boolean isHasCollectReply()
    {
        return hasCollectReply;
    }

    public void setHasCollectReply(boolean hasCollectReply)
    {
        this.hasCollectReply = hasCollectReply;
    }

    public double[] getCoordinates()
    {
        return coordinates;
    }

    public void setCoordinates(double[] coordinates)
    {
        this.coordinates = coordinates;
    }

    public String getAddress()
    {
        return address;
    }

    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getSource()
    {
        return source;
    }

    public void setSource(String source)
    {
        this.source = source;
    }

    public String getScreenName()
    {
        return screenName;
    }

    public void setScreenName(String screenName)
    {
        this.screenName = screenName;
    }

    public String[] getVideoUrl()
    {
        return videoUrl;
    }

    public void setVideoUrl(String[] videoUrl)
    {
        this.videoUrl = videoUrl;
    }

    public long getUid()
    {
        return uid;
    }

    public void setUid(long uid)
    {
        this.uid = uid;
    }

    public long getRetweetId()
    {
        return retweetId;
    }

    public void setRetweetId(long retweetId)
    {
        this.retweetId = retweetId;
    }

    public boolean isIsInitArticle()
    {
        return isInitArticle;
    }

    public void setIsInitArticle(boolean isInitArticle)
    {
        this.isInitArticle = isInitArticle;
    }

	public JSONObject getJsonObject()
	{
		return jsonObject;
	}

	public void setJsonObject(JSONObject jsonObject)
	{
		this.jsonObject = jsonObject;
	}
    
    
}
